/* TODO: Fix shit and remove warning when done */
#warning "inventory.h is rather old and untested for several versions."

#ifndef __ROM_INVENTORY_H
#define __ROM_INVENTORY_H 1
/*
	Bag 1 starts at INVENTORY_POINTER and is an array of 30 of the inventory items
	bags follow upon eachother directly in memory, so bag 1 and 2 are the first 4080 bytes after INVENTORY_POINTER
	an empty bag slot will have the whole struct set to NULL

	BAG SLOTS ARE NOT IN ORDER IF YOU EVER USED THE 'sort bag' BUTTON, THE FIRST MEMBER OF THE ARRAY ISNT ALWAYS THE FIRST SLOT

	TODO: Figure out a way to see if bags 3-4-5 are activated
*/

/* Size 68 bytes */
struct INVENTORY_ITEM
{
	unsigned int	item_id1;		//Look at romdata.getbuffed.com to know item id's
	unsigned int	item_id2;		//Seems to be a duplicate of item_id1
	char		unknown2[8];
	unsigned int	quantity;		//number of stacked items
	char		unknown3[8];
	int		can_pick;		//0 if you can pick up the item, -1 if its 'in use'
	char		unknown_3[32];
	int		flag;			//Some sort of flag, I've seen 0x20, 0x01 and 0x02 so far

} __attribute__((packed));

#endif
